<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息管理系统-欢迎</title>
<link href="__PUBLIC__/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.js"></script>
<script>
$(function(){
	showtime();
})

function showtime(){
	var date = new Date(); //日期对象
	var now = "当前时间：";
	now = now + date.getFullYear()+"年"; //读英文就行了
	now = now + (date.getMonth()+1)+"月"; //取月的时候取的是当前月-1如果想取当前月+1就可以了
	now = now + date.getDate()+"日";
	now = now + date.getHours()+"时";
	now = now + date.getMinutes()+"分";
	now = now + date.getSeconds()+"秒";
	//now = now + date.getMilliseconds();//微秒

	var week; 
	if(date.getDay()==0)week="星期日";
	if(date.getDay()==1)week="星期一";
	if(date.getDay()==2)week="星期二";
	if(date.getDay()==3)week="星期三";
	if(date.getDay()==4)week="星期四";
	if(date.getDay()==5)week="星期五";
	if(date.getDay()==6)week="星期六";
	now = now + "  " + week + "  " + theWeek();
	$("#nowtime").html(now);
	setTimeout("showtime()",1000); //设置过1000毫秒就是1秒，调用show方法
}

////////////////////////////////////////////////////////////////////////////////////////////////////
//获取当前日期在当前年第几周函数封装，例如2013-08-15 是当前年的第32周
////////////////////////////////////////////////////////////////////////////////////////////////////
function theWeek() {
    var date1 = new Date();
	var date2 = new Date();
	date2.setMonth(0);
	date2.setDate(1);
	var riqi = date1-date2;
	var days = Math.ceil(riqi/(24*60*60*1000));
	var week = Math.ceil(days/7);
    return "第"+days+"天  第"+week+"周";//周日做为下周的开始计算
}
</script>
</head>
<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a href="{:U('index/welcome')}">首页</a></li>
		<li><a href="{:U('index/welcome')}">欢迎页</a></li>
		</ul>
    </div>
    
    <div class="mainindex">

		<span>
			<iframe allowtransparency="true" frameborder="0" width="565" height="98" scrolling="no" src="//tianqi.2345.com/plugin/widget/index.htm?s=2&z=3&t=1&v=0&d=3&bd=0&k=&f=&q=1&e=1&a=1&c=57036&w=565&h=98&align=center"></iframe>
		</span>

		<div class="xline"></div>

		<div class="welinfo">
			<b>{$Think.session.admin.username}，您好，欢迎使用信息管理系统！</b>
			<a href="{:U('index/passwordadmin')}">修改密码</a>
		</div>
    
		<div class="welinfo">
			<span><img src="__PUBLIC__/admin/images/time.png" alt="时间" /></span>
			<i><span id="nowtime">当前时间：{$Think.const.SYS_TIME|date="Y-m-d H:i:s",###}</span></i> 
		</div>
    
		<div class="xline"></div>
		<!--
		<ul class="iconlist">
			<li><img src="__PUBLIC__/admin/images/ico01.png" /><p><a href="#">管理设置</a></p></li>
			<li><img src="__PUBLIC__/admin/images/ico02.png" /><p><a href="#">发布文章</a></p></li>
			<li><img src="__PUBLIC__/admin/images/ico03.png" /><p><a href="#">数据统计</a></p></li>
			<li><img src="__PUBLIC__/admin/images/ico04.png" /><p><a href="#">文件上传</a></p></li>
			<li><img src="__PUBLIC__/admin/images/ico05.png" /><p><a href="#">目录管理</a></p></li>
			<li><img src="__PUBLIC__/admin/images/ico06.png" /><p><a href="#">查询</a></p></li> 
		</ul>
    
		<div class="ibox"><a class="ibtn"><img src="__PUBLIC__/admin/images/iadd.png" />添加新的快捷功能</a></div>
		
		<div class="xline"></div>
		-->

		<div class="box"></div>
		<div class="welinfo">
			<span><img src="__PUBLIC__/admin/images/dp.png" alt="提醒" /></span>
			<b>信息管理系统使用指南</b>
		</div>
		 
    
		<div class="xline"></div>
		<div class="box"></div>
		<if condition="$Think.session.admin.role eq 1 ">
		<ul class="umlist">
			<li><a href="{:U('admin/index')}">后台用户设置(权限)</a></li>
			<li><a href="{:U('menuinfo/index')}">菜单设置</a></li>
			<li><a href="{:U('setting/index')}">系统设置</a></li>
			<li><a href="{:U('goods/index')}">商城管理</a></li>
		</ul>
		</if>
    </div>
</body>
</html>
